package com.srit.migration.web.action;

import org.springframework.beans.factory.annotation.Autowired;

import com.srit.base.struts2.action.BaseAction;
import com.srit.migration.business.bean.VirtualDb;
import com.srit.migration.business.service.VirtualDbService;

/**
 * VirtualDbAction
 * @author guan
 *  by action.tem
 */
public class VirtualDbAction extends BaseAction {
	private VirtualDb virtualDb;
	@Autowired(required = true)
	private VirtualDbService virtualDbService;
	
	public VirtualDb getVirtualDb() {
		return virtualDb;
	}

	public void setVirtualDb(VirtualDb virtualDb) {
		this.virtualDb = virtualDb;
	}
	
	/**
	 * 保存前校验
	 */
	public void validateSave() {

	}

	/**
	 * 保存实体
	 * 
	 * @return
	 */
	public String save() {
		return JSON;
	}

	/**
	 * 修改前校验
	 */
	public void validateUpdate() {

	}

	/**
	 * 修改实体
	 * 
	 * @return
	 */
	public String update() {
		return JSON;
	}

	/**
	 * 表单页面前准备
	 */
	public void prepareForm() {

	}

	/**
	 * 跳转表单页面
	 * 
	 * @return
	 */
	public String form() {
		return JSON;
	}
	
	
	/**
	 * 分页列表页面
	 * @return
	 */
	public String page() {
		return JSON;
	}
	
}
